package com.edu.cuotibook.configuration;

import com.edu.cuotibook.dao.ExamPaperDaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * create by sym  2021/4/14 23:26.
 */
@Component
public class InitJob {

    @Autowired
    private ExamPaperDaoService examPaperDaoService;

    @PostConstruct
    public void init(){
        examPaperDaoService.initSql();
    }
}
